#!/bin/bash

make clean

for g in *; do # make all characters lowercase
  mv $g `echo $g | tr A-Z a-z`
done

rm *.0
rm *.1
rm *.2
rm *.3
rm *.4
rm *.ali
rm *.bak
rm *.o
rm *.exe
rm *.ago
rm *.dll
rm mprogram

rm adag*
rm sim*
rm io_*
rm swin*



sed -i "s/.*\-\-\*/\-\- &/g" *.*

cp -p ../../Given/* .

sed -i "s/your_program/console_controller/g" Makefile

make console_controller
rm console_controller.adb
rm *.adb
rm *.ads
